import React from 'react';

import { connect } from 'react-redux';

class Footer extends React.Component {
    render() {
        return (
            <footer>
                <h2>页脚也想访问数据：{this.props.aaa}</h2>
            </footer>
        );
    }
}

const mapStateToProps = (state) => ({
    aaa: state.num
});

const SuperFooter = connect(mapStateToProps)(Footer);

export default SuperFooter;